package cst.a128lqn.widgettest128lqn;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class ButtonActivity extends AppCompatActivity {
   private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_button);
        textView =(TextView)findViewById(R.id.textView);
        Intent intent = getIntent();
        String str =intent.getStringExtra("para1");

        textView.setText(str);
    }
}
